from django.conf.urls import patterns, include, url

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'django_pro.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),

    url(r'^admin/', include(admin.site.urls)),
    url(r'^login/', include('login.urls')),

    url(r'^$','django_pro.views.index'),
    # user auth urls

    url(r'^accounts/login/$','django_pro.views.login'),
    url(r'^accounts/auth/$','django_pro.views.auth_view'),
    url(r'^accounts/logout/$','django_pro.views.logout'),
    url(r'^accounts/loggedin/$','django_pro.views.loggedin'),
    url(r'^accounts/invalid/$','django_pro.views.invalid_login'),


    # registeration form

    url(r'^accounts/register/$','django_pro.views.register_user'),
    url(r'^accounts/register_success/$','django_pro.views.register_success'),

)
